package both.map.mapModel.unitTests;

import junit.framework.Assert;

import org.junit.Test;

import both.map.mapModel.*;
public class ModelCellTest {


	@Test
	public void testIsPartOfUpdate() {
		VisibilityCell vc = new VisibilityCell();
		Assert.assertFalse(vc.isPartOfUpdate());
		vc.setVisibility(true, true);
		Assert.assertFalse(vc.isPartOfUpdate());
		VisibilityCell update = vc.grabUpdate();
		Assert.assertTrue(update.isPartOfUpdate());
	}

	@Test
	public void testUpdateFlag() {
		VisibilityCell vc = new VisibilityCell();
		Assert.assertFalse(vc.hasBeenUpdated());
		vc.setVisibility(true, true);
		Assert.assertTrue(vc.hasBeenUpdated());
		vc.grabUpdate();
		Assert.assertFalse(vc.hasBeenUpdated());
	}
}
